package top.ddandang.blog.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * <p>
 * OSS 配置文件
 * </p>
 *
 * @author D
 * @version 1.0
 * @date 2020/6/30 11:29
 */
@Data
@Component
@PropertySource(value = "classpath:personnel.yaml")
@ConfigurationProperties(prefix = "alyun")
public class OssBean {
    @Value("${bucketName}")
    private String bucketName;

    @Value("${endpoint}")
    private String endpoint;

    @Value("${accessKeyId}")
    private String accessKeyId;

    @Value("${accessKeySecret}")
    private String accessKeySecret;

    @Value("${postHost}")
    private String postHost;
}
